<?php
useModel("User");
class indexController extends Core_Controller
{
    private $userModel = null;
    public function __construct()
    {
        parent::__construct();
        $this->userModel = new UserModel();
    }

    public function home(){
        $this->view->title = "Trang chủ";
        $this->view->descript = "Mô tả tý";
        $this->view->uri = $this->rewrite->getFullUrl("images");

        $data = $this->userModel->findByUsername("helu");

        __printr($this->userModel->sql);
        __printr($data);
        __printr($this->userModel->data);

        $this->view->render("/home/home");
    }
}
